package com.example.wod.retrofitdemo.Bean;

import java.io.Serializable;

/**
 * Created by Wod on 2015/12/30.
 */
public class Reg implements Serializable {

    /**
     * code : SUCCESS
     * info : 注册成功
     * data : {"balance":"0.00","uname":"13197709020","avatar":"statics/images/noavatar_middle.gif","realname":"","sex":"0","realname_status":"0","phone":"13197709020","max_energy":"30","energy":30,"distance_next":91,"open_key":"6170fbaea0a323016e0da19c16fba6b2","user_key":"wV8BB7hn98gZNjEv9BdC1g=="}
     */

    private String code;
    private String info;
    /**
     * balance : 0.00
     * uname : 13197709020
     * avatar : statics/images/noavatar_middle.gif
     * realname :
     * sex : 0
     * realname_status : 0
     * phone : 13197709020
     * max_energy : 30
     * energy : 30
     * distance_next : 91
     * open_key : 6170fbaea0a323016e0da19c16fba6b2
     * user_key : wV8BB7hn98gZNjEv9BdC1g==
     */

    private DataEntity data;

    public void setCode(String code) {
        this.code = code;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }

    public DataEntity getData() {
        return data;
    }

    public static class DataEntity  implements Serializable{
        private String balance;
        private String uname;
        private String avatar;
        private String realname;
        private String sex;
        private String realname_status;
        private String phone;
        private String max_energy;
        private int energy;
        private int distance_next;
        private String open_key;
        private String user_key;
        private String uid;
        public void setBalance(String balance) {
            this.balance = balance;
        }

        public void setUname(String uname) {
            this.uname = uname;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public void setRealname(String realname) {
            this.realname = realname;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public void setRealname_status(String realname_status) {
            this.realname_status = realname_status;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public void setMax_energy(String max_energy) {
            this.max_energy = max_energy;
        }

        public void setEnergy(int energy) {
            this.energy = energy;
        }

        public void setDistance_next(int distance_next) {
            this.distance_next = distance_next;
        }

        public void setOpen_key(String open_key) {
            this.open_key = open_key;
        }

        public void setUser_key(String user_key) {
            this.user_key = user_key;
        }

        public String getBalance() {
            return balance;
        }

        public String getUname() {
            return uname;
        }

        public String getAvatar() {
            return avatar;
        }

        public String getRealname() {
            return realname;
        }

        public String getSex() {
            return sex;
        }

        public String getRealname_status() {
            return realname_status;
        }

        public String getPhone() {
            return phone;
        }

        public String getMax_energy() {
            return max_energy;
        }

        public int getEnergy() {
            return energy;
        }

        public int getDistance_next() {
            return distance_next;
        }

        public String getOpen_key() {
            return open_key;
        }

        public String getUser_key() {
            return user_key;
        }
        public void setUid(String uid) {
            this.uid = uid;
        }
        public String getUid() {
            return uid;
        }
    }
}
